API Documentation
Public Member Functions | List of all members
nkWinUi::Theme Class Referencefinal

A theme used to style the windows in the component. More...

Public Member Functions

 Theme ()
 
 ~Theme ()
 
nkMemory::StringView getName () const
 
ThemeColorsgetColors ()
 
const ThemeColorsgetColors () const
 
void setName (const nkMemory::StringView &name)
 

Detailed Description

A theme used to style the windows in the component.

Constructor & Destructor Documentation

◆ Theme()

nkWinUi::Theme::Theme ( )

Constructor.

◆ ~Theme()

nkWinUi::Theme::~Theme ( )

Destructor.

Member Function Documentation

◆ getName()

nkMemory::StringView nkWinUi::Theme::getName ( ) const
Returns
The name attached to the theme.

◆ getColors() [1/2]

ThemeColors& nkWinUi::Theme::getColors ( )
Returns
The colors attached to the theme. Can be edited to alter the colors.

◆ getColors() [2/2]

const ThemeColors& nkWinUi::Theme::getColors ( ) const
Returns
The colors attached to the theme (const).

◆ setName()

void nkWinUi::Theme::setName ( const nkMemory::StringView name)

Sets the name of the theme. Used internally by the ThemeManager.

Parameters
nameThe name to set.

The documentation for this class was generated from the following file: